<template>
  <div class="top-tip">
    <info-circle-outlined class="top-tip-icon" />
    <span class="top-tip-title">说明：</span>
    <span class="top-tip-text">自定义配置CMS管理后台的Title及Logo素材，最多仅可有一套配置启用中。</span>
  </div>
  <div class="page-filter">
    <div class="page-filter-left">
      <a-button type="primary" @click="addCustom">添加配置</a-button>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { customState, customForm } from '../state'
//添加配置
const addCustom = () => {
  customState.customVisible = true
  customState.isAdd = true
  customForm.id = undefined
}
</script>

<style lang="less" scoped>
@common-color: #0083ff; // sea blue
.top-tip {
  width: 100%;
  min-height: 48px;
  background: #fffbe4;
  border: 0.5px solid rgba(255, 169, 0, 1);
  border-radius: 3px;
  font-size: 14px;
  padding: 14px 16px;
  box-sizing: border-box;
  margin: 24px 0;
  &-icon {
    color: #ffa900;
  }
  &-title {
    font-size: 14px;
    color: #262626;
    font-weight: 500;
    margin-left: 8px;
  }
  &-text {
    font-size: 14px;
    color: #595959;
    font-weight: 400;
    margin-left: 8px;
  }
}
.page-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

  &-left {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 10px;
  }

  &-right {
    display: flex;
    align-items: center;

    .select-m-r-24 {
      width: 196px;
      height: 32px;
      margin: 10px 24px 0 0;
    }

    .input-m-r-16 {
      height: 32px;
      margin: 10px 16px 0 0;
    }

    .btn-m-r-24 {
      margin: 10px 24px 0 0;
    }

    .m-r-8 {
      margin: 10px 8px 0 0;
    }
  }
}
</style>
